Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

construct the hashtables iteratively to save memory up to B times #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xu3kev
Copy link

@xu3kev xu3kev commented Jan 11, 2023

Since each hashtable can be constructed once and then discarded after the union-find step, we can rearrange the for loop into constructing the B hashtables one by one instead of constructing them all at once. (Note that each hashtable consumes a large amount of memory because it holds the (document idx, hash) for the entire dataset.) We can then potentially save the memory usage by up to B times.

@xu3kev xu3kev changed the title construct the hashtables iteratively to save memory by B times construct the hashtables iteratively to save memory up to B times Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant